cmake_minimum_required(VERSION 3.10)

project(GpuDevelop)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# 启用测试
include(CTest)
enable_testing()

if (CMAKE_BUILD_TYPE STREQUAL "Debug")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g -ggdb")
endif()

set(EXECUTABLE_OUTPUT_PATH  ${CMAKE_BINARY_DIR})

add_subdirectory(opencl)
add_subdirectory(cuda)
